#!  python
# -*- coding: UTF-8 -*-
'''
@Author ：Star
@Date ：2022/10/21  
'''
from Broswer import *
import unittest


class TestBaidu(unittest.TestCase):
    def test_search_key_selenium(self):
        search_key = "selenium"
        baidu_search(search_key)
        self.assertEqual(Browser.driver.title, search_key + "_百度搜索")

    def test_search_key_unittest(self):
        search_key = "unittest"
        baidu_search(search_key)
        self.assertEqual(Browser.driver.title, search_key + "_百度搜索")
